malloc->xmalloc.
authorrobertl <robertl>
Tue, 21 Jun 2005 06:15:46 +0000 (06:15 +0000)
committerrobertl <robertl>
Tue, 21 Jun 2005 06:15:46 +0000 (06:15 +0000)
kml.c

diff --git a/kml.c b/kml.c
index 4fd3a8616f62a4f675cd9fe6347beaaf76bdb13c..d7c5fa35667f9308c0837e92009b08381a8e83e0 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -208,7 +208,7 @@ static void kml_output_header(const route_head *header)
 
         // Create an array for holding waypoint coordinates so that we
         // can produce a LineString at the end.
-        point3d_list = (point3d *) malloc(header->rte_waypt_ct * sizeof(point3d));
+        point3d_list = (point3d *) xmalloc(header->rte_waypt_ct * sizeof(point3d));
         point3d_list_len = 0;
 }